package day2;

import day2.beans.User;
import day2.service.UserDao;

public class Test {
    public static void main(String[] args)throws Exception {
        User u = new User("hello1",23,"南京");
        UserDao dao = new UserDao();
//        int rs = dao.insertUser(u);
//        System.out.println(dao.selectUserByName("a1"));
        System.out.println(dao.selectUserLikeName("%a%"));
//        System.out.println(rs>0?"添加成功":"添加失败");
    }
}
